<template>
<div>
  <h2>hello,{{name}}</h2>
  <button v-on:click="showInfo1">点我提示信息1</button>
  <button @click="showInfo2($event,66)">点我提示信息2</button>
</div>
</template>

<script>
export default {
  name: "ShiJianDeJiBenYongFa",
  data() {
    return {
      name: 'JOJO'
    }
  },
  methods: {
    showInfo1(event) {
      console.log(event)
    },
    showInfo2(event, num){
      console.log(event, num)
    }
  }
}
</script>

<style scoped>

</style>
